/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;
import javax.management.Query;
import org.hibernate.Hibernate;
import org.hibernate.Session;
import org.hibernate.Transaction;
import _POJO.NhanVien;
import until.HibernateUtil;
/**
 *
 * @author Trag
 */
public class NhanVienDAO {
    public static void ThemNhanVien(NhanVien nv){
        Session ss= HibernateUtil.getSessionFactory().openSession();
        Transaction t= ss.beginTransaction();
        ss.save(nv);
        t.commit();
        ss.close();
    }
}
